package com.fdhwws.web.domain;

import com.fdh.myjdbcutil.ColumnField;
import com.fdh.myjdbcutil.IMyEntity;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;


public class UserFootprints implements IMyEntity {
    @ColumnField(type = ColumnField.Type.SET, isPrimaryKey = true)
    private Integer id;

    @ColumnField
    private Integer uid;

    @ColumnField
    private Integer roomId;

    @ColumnField
    private Timestamp time;

    public UserFootprints() {
    }

    public UserFootprints(Integer id, Integer uid, Integer roomId, Timestamp time) {
        this.id = id;
        this.uid = uid;
        this.roomId = roomId;
        this.time = time;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public Timestamp getTime() {
        return time;
    }

    public void setTime(Timestamp time) {
        this.time = time;
    }

    public UserFootprints safeMode() {
        this.uid = null;
        return this;
    }

    @Override
    public String toString() {
        return "UserFootprints{" +
                "id=" + id +
                ", uid=" + uid +
                ", roomId=" + roomId +
                ", time=" + time +
                '}';
    }
}
